package com.itheima.utils;

import java.util.Date;

public class BrithdayUtils {

    public static Integer getBrithday(Date date) throws Exception{
        String brithdayDate = DateUtils.parseDate2String(date);//"2020-09-26"
        String[] s = brithdayDate.split("-");
        int brithday = Integer.parseInt(s[0]);
        return brithday;
    }
}
